package kpsmart.model.events;

import java.util.Date;

public abstract class AbstractEvent implements Event {

	@Override
	public int compareTo(Event e){
		return this.getDate().compareTo(e.getDate());
	}
	
	@Override
	public Date toJavaDate() {
		return new Date(getDate());
	}
        
        @Override
        public String toString(){
            return getEventType()+" "+toJavaDate();
        }

}
